package b2.player
{
	public class RankingPackage
	{
		public var rankingList:Array;
		
		public function RankingPackage(packageXML:XML = null)
		{
			rankingList = new Array();
			if (packageXML != null)
			{
				for (var j:int = 0; j < packageXML.rankingInfo.length(); j++)
				{
					var rankings:Array = new Array();
					for (var i:int = 0; i < packageXML.rankingInfo[j].ranking.length(); i++)
					{
						var ranking:RankingInfo = new RankingInfo(packageXML.rankingInfo[j].ranking[i]);
						rankings.push(ranking);
					}
					rankingList.push(rankings);
				}
			}
		}

	}
}